package com.hsmw.api.controller.integral;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hsmw.api.mapper.HsmwPointsDetailsMapper;
import com.hsmw.api.mapper.HsmwUserDriverMapper;
import com.hsmw.api.service.HsmwPointsDetailsService;
import com.hsmw.common.base.BasePage;
import com.htn.common.core.base.DataResponse;
import com.hsmw.domain.HsmwOrder;
import com.hsmw.domain.HsmwPointsDetails;
import com.hsmw.domain.HsmwReport;
import com.hsmw.domain.HsmwUserDriver;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.hsmw.common.base.BaseController;

import javax.validation.Valid;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 积分明细表 前端控制器
 * </p>
 *
 * @author tjy
 * @since 2021-07-16
 */
@Api(tags = "积分明细")
@RestController
@RequestMapping("/hsmw/points/")
public class HsmwPointsDetailsController extends BaseController<HsmwPointsDetailsService, HsmwPointsDetails> {



    @Autowired
    private HsmwPointsDetailsService hsmwPointsDetailsService;




    @ApiOperation(value = "查看积分明细列表", notes = "查看积分明细列表", produces = "application/json")
    @PostMapping("/findPointsDetailList")
    public DataResponse findPointsDetailList(String driverId){

        return new DataResponse(hsmwPointsDetailsService.findPointsDetailList(driverId));
    }






}

